export enum IsDisplayEnum {
  SHOW_VAL = "Y",
  HIDDEN_VAL = "N"
}

export enum IsLeafEnum {
  NO = "0",
  YES = "1"
}

export enum ActiveStatusEnum {
  USE = "Y",
  STOP = "N"
}

export type ModeType = "add" | "edit" | "child_add";

export interface AuthBtnType {
  resourceKey: string;
  resourceName: string;
}

export interface MenuType {
  id?: number;
  menuName: string;
  menuCode: string;
  menuUrl: string;
  menuPath: string;
  isDisplay: string;
  icon: string;
  menuOrder: string;
  isLeaf: string;
  parentId: number;
  resourceList: AuthBtnType[];
}

export interface StateType {
  tableData: MenuType[];
  menuData: MenuType;
}

export interface FormInlineType {
  menuName: string;
}
